
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  
  <title><?php echo __TITLE__ ?></title>
	<link href="<?php echo __CSS__ ?>__style.css.php?url=<?php echo __LOCALWWW__ ?>" rel="stylesheet" type="text/css" />
	
	<script type="text/javascript" src="<?php echo __JSVIEW__ ?>prototype.js"></script>
	<link type="text/css" href="<?php echo __CSS__ ?>/ui-lightness/jquery-ui-1.8.6.custom.css" rel="stylesheet" />	
	<script type="text/javascript" src="<?php echo __JSVIEW__ ?>jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="<?php echo __JSVIEW__ ?>jquery-ui-1.8.6.custom.min.js"></script>

	<script type="text/javascript" src="<?php echo __JSVIEW__ ?>nomina/botones.js"></script>
	
	<script type="text/javascript">
		function Mostrar_Detalles(id){
			$('#divDetalles'+id).show("blind");
		}

		function Ocultar_Detalles(id){
			$('#divDetalles'+id).hide("blind");
		}
		$(function (){
			//hover states on the static widgets
			$('#dialog_link, ul#icons li').hover(
				function() { $(this).addClass('ui-state-hover'); },
				function() { $(this).removeClass('ui-state-hover'); }
			); 
			
			var dates = $( "#fecha_desde, #fecha_hasta" ).datepicker({
			showOn: "button",
			buttonImage: "<?php echo __IMG__ ?>/calendar.gif",
			buttonImageOnly: true,
			onSelect: function( selectedDate ) {
				var option = this.id == "fecha_desde" ? "minDate" : "maxDate",
				instance = $( this ).data( "datepicker" ),
				date = $.datepicker.parseDate(
					instance.settings.dateFormat ||
					$.datepicker._defaults.dateFormat,
					selectedDate, instance.settings );
					dates.not( this ).datepicker( "option", option, date );
			}
			});
			$.datepicker.regional['es'] = {
					closeText : 'Cerrar',
					prevText : '&#x3c;Ant',
					nextText : 'Sig&#x3e;',
					currentText : 'Hoy',
					monthNames : ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'],
					monthNamesShort : ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'],
					dayNames : ['Domingo', 'Lunes', 'Martes', 'Mi&eacute;rcoles', 'Jueves', 'Viernes', 'S&aacute;bado'],
					dayNamesShort : ['Dom', 'Lun', 'Mar', 'Mi&eacute;', 'Juv', 'Vie', 'S&aacute;b'],
					dayNamesMin : ['Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'S&aacute;'],
					weekHeader : 'Sm',
					dateFormat : 'dd/mm/yy',
					firstDay : 1,
					isRTL : false,
					showMonthAfterYear : false,
					yearSuffix : ''
				};
				$.datepicker.setDefaults($.datepicker.regional['es']);
			$( "#fecha_desde" ).datepicker( "option", "dateFormat", "yy-mm-dd" );
			$( "#fecha_hasta" ).datepicker( "option", "dateFormat", "yy-mm-dd" );
			
		});
	</script>

		<style type="text/css">
			/*demo page css*/
			body{ font: 62.5% "Trebuchet MS", sans-serif; margin: 0px;}
			.demoHeaders { margin-top: 2em; }
			#dialog_link {padding: .1em 1em .20em 6px;text-decoration: none;position: relative;}
			#dialog_link span.ui-icon {margin: 5px 0 0;position: absolute;center: 1em;top: 1%;margin-top: 10px;}
			
			#dialog_boton {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
			#dialog_boton span.ui-icon {margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;}
			
			#tipo_link {padding: 2px 4px 2px 4px;text-decoration: none;position: relative; }
			
			ul#icons {margin: 0; padding: 0;}
			ul#icons li {margin: .3px; position: relative; padding: .3px 0; cursor: pointer; float: left;  list-style: none;}
			ul#icons span.ui-icon {float: left; margin: .5px;}
		</style>	
  
  
  </head>
<body style="background-color: #FFFACD;">
<center>
  <div id="cabecera">
    <!-- 
      --------------------------------------------------------
        Inicio del Menu Superior      
      --------------------------------------------------------
    --> <?php echo $Menu;?>
  </div>


  <div id="medio" > 
    <table style="width: 800px" border=0>
      <tr>
        <td style="width: 20px">
    
        </td>
        <td>
          
          <table border=0 >
            <tr >
              <td style="width :700px" align="left">              
              <br>
              <h2>Historial de Facturas Por Aceptar</h2>
              <br>
              		<div class="ui-widget" style="display:none;" id='divReportesMsg'>
										<div class="ui-state-highlight ui-corner-all" style="margin-top: 10px; padding: .8em;" id='divReportesMsgInformacion'>
											<p><a href="#" onClick="Effect.Fade('divReportesMsg')"> <span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
											<strong>Su informaci&oacute;n esta siendo evaluada en estos momentos por favor espere...</strong></a></p>
										</div>
									</div><br>
							    <!-- ui-dialog -->
									<div id="reportes" title="Detalles del credito">
										<?php
											if($Nivel == 0){
												$this->load->view(__NFORMULARIOS__ . "reportes_generales.php");
											}else {
												//Usuario Sin Nivel de Acceso
												$this->load->view(__NFORMULARIOS__ . "frmReporteGenerico.php");
											}
										?>
									</div>	
										
									<div id="divReportes" >
												<?php echo $sContenido; ?>
									</div>	
								
              </td>
            </tr>
          </table>
        
        		
        </td>
      </tr>
    </table>
    <br>

  </div>
  




  <!-- 
    --------------------------------------------------------
      Inicio Menu inferior      
    --------------------------------------------------------
  --> 



</center>
</body>
</html>
